package com.minazuki.signinserver.filter;


import javax.servlet.*;
import java.io.IOException;

public class AuthFilter implements Filter {


    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException, IOException {
//        String token = servletRequest.getParameter(prop.getCookieName());
        try {
//            UserInfo info = JwtUtils.getInfoFromToken(token, prop.getPublicKey());
            filterChain.doFilter(servletRequest, servletResponse);
        } catch (Exception e) {
            System.out.println("解析失败");

            e.printStackTrace();
        }
    }

    @Override
    public void destroy() {

    }
}
